<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<s:layout-definition>

    <table id="dashboard-table" class="table layout-large-table">
        <thead>
        <tr>
            <th>Name</th>
            <th>Address</th>
            <th>Phone</th>
            <th>Action</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="client"  varStatus="counter" items="${actionBean.clientDao.allClients}">
            <s:layout-render name="/WEB-INF/jsp/client/clientManagerRow.jsp"
                             client="${client}"/>

            <s:layout-render name="/WEB-INF/jsp/client/editClientModal.jsp"
                             client="${client}"/>
        </c:forEach>
        </tbody>
    </table>

    <a class="client-add-button btn btn-primary" style="margin-left:25px;"
            href="#dashboard-add-client-modal"
            role="button"
            data-toggle="modal">
        <i class="icon-ok"></i>Add Client</a>
</s:layout-definition>